package com.example.demo.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * 库存类
 */
public class Stock {
    private int stock_id;
    private String stock_no;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date in_time;//入库时间

    @Override
    public String toString() {
        return "Stock{" +
                "stock_id=" + stock_id +
                ", stock_no='" + stock_no + '\'' +
                ", in_time=" + in_time +
                '}';
    }

    public Stock() {
    }

    public Stock(String stock_no, Date in_time) {
        this.stock_no = stock_no;
        this.in_time = in_time;
    }

    public int getStock_id() {
        return stock_id;
    }

    public void setStock_id(int stock_id) {
        this.stock_id = stock_id;
    }

    public String getStock_no() {
        return stock_no;
    }

    public void setStock_no(String stock_no) {
        this.stock_no = stock_no;
    }

    public Date getIn_time() {
        return in_time;
    }

    public void setIn_time(Date in_time) {
        this.in_time = in_time;
    }
}
